#include"SeqList.h"
void TestInit()
{
	SeqList s;
	SeqListInit(&s);
	printf("%d\n", s.capacity);
	printf("%d\n", s.size);
}
void TestInsert()
{
	SeqList s;
	SeqListInit(&s);
	SeqListPushFront(&s, 1);
	SeqListPushFront(&s, 2);
	SeqListPushBack(&s, 3);
	SeqListPushBack(&s, 4);
	SeqListInsert(&s, 2, 6);
	SeqListPrint(&s);
}
void TestErase()
{
	SeqList s;
	SeqListInit(&s);
	SeqListPushFront(&s, 1);
	SeqListPushFront(&s, 2);
	SeqListPushFront(&s, 3);
	SeqListPushFront(&s, 4);
	SeqListPrint(&s);

	SeqListPopFront(&s);
	SeqListPrint(&s);

	SeqListPopBack(&s);
	SeqListPrint(&s);

	SeqListErase(&s, 2);
	SeqListPrint(&s);
}
int main()
{
	//TestInit();
	//TestInsert();
	TestErase();
	return 0;
}